package com.cmic.rcs.enhance.message.g5.core.common;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class VersionResponseData<T> extends Response {
    private Integer version;
    private T data;
    private String emojiSetId = "";
    private String emojiSetName = "";
    private String emojiSetCover = "";

    public static <T> VersionResponseData<T> OK(Integer version, T data) {
        VersionResponseData<T> o = new VersionResponseData<>();
        o.setCode(ReturnCodeEnum.SUCCESS.getCode());
        o.setMsg(ReturnCodeEnum.SUCCESS.getMsg());
        o.setVersion(version);
        o.setData(data);
        return o;
    }
}
